package com.example.materialviewpagerdemo.util;

import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;

public class FyyDialog extends DialogFragment
{
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState)
    {
        AlertDialog.Builder builder=new AlertDialog.Builder(getActivity());
        builder.setTitle("提示").setMessage("硬件设备尚未到位，本功能暂时关闭").setPositiveButton("我知道了",((dialog, which) -> {}));
        return builder.create();
    }

}
